package com.waikuai.shop.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 修改支付密码DTO
 * @author waikuai
 */
@Data
public class UpdatePaymentPasswordDTO {

    /**
     * 旧支付密码
     */
    @NotBlank(message = "旧支付密码不能为空")
    private String oldPaymentPassword;

    /**
     * 新支付密码
     */
    @NotBlank(message = "新支付密码不能为空")
    @Size(min = 6, max = 20, message = "新支付密码长度必须在6-20位之间")
    private String newPaymentPassword;

    /**
     * 确认新支付密码
     */
    @NotBlank(message = "确认支付密码不能为空")
    private String confirmPaymentPassword;
}

